﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ArtLand.OA.Project.SystemMgr.SysModelPer" Codebehind="SysModelPer.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Grid1"  />
    <ext:Grid ID="Grid1" Title="权限管理"  ShowBorder="false" runat="server" EnableCheckBoxSelect="true" DataKeyNames="Perid"
        OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" EnableTextSelection="true">
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                <ext:Button ID="btnPer" Text="设定权限" Icon="KeyAdd"  OnClick="btnKey_Click" EnablePostBack="true"
                        runat="server">
                    </ext:Button>
                <ext:ToolbarSeparator runat="server" ID="ToolBarS1"></ext:ToolbarSeparator>
                    <ext:Button ID="btnNew" Text="新增权限" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField Width="120px" DataField="Pername" DataFormatString="{0}" HeaderText="权限名称" />
            <ext:BoundField Width="100px" DataField="Keyword" DataFormatString="{0}" HeaderText="关键字" />
            <ext:BoundField Width="60px" DataField="Orderid" DataFormatString="{0}" HeaderText="排序号" />
            <ext:CheckBoxField Width="60px" RenderAsStaticField="true" DataField="IsUser" HeaderText="是否可用" />
            <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="修 改" DataTextFormatString="{0}" DataIFrameUrlFields="Perid"
                DataIFrameUrlFormatString="SysModelPerChange.aspx?id={0}" DataWindowTitleField="Pername"
                DataWindowTitleFormatString="修改 - {0}" />
            <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" ColumnID="Perid"
                Width="50px" CommandName="Del" Text="删 除" />
            </Columns>
    </ext:Grid>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="500px" Height="370px">
    </ext:Window>
    </form>
</body>
</html>

